import fetch from '@/utils/fetch'

//报事报修数据
export function getWorkAnalysisList(params) {
	return fetch({
		url: '/customer/v1/mgt/affair/statistics',
	    method: 'get',
	    params
	})
}

//设备维保数据
export function getMaintenanceplanList(params){
	return fetch({
		url: '/maintenanceplan/v1/mgt/mp_plan/statistics',
		method : 'get',
		params
	})
}

//能耗监管数据
export function getEnergyList(params){
	return fetch({
		url:'/device/v1/mgt/public_energy/statistics',
		method: 'get',
		params
	})
}

//运营统计-人数统计
export function getUserCount(params){
	return fetch({
		url:"/trace/v1/mgt/statistic/user",
		method:"get",
		params
	})
}

//运营统计-自助缴费
export function getPayment(params){
	return fetch({
		url:"/pay/v1/mgt/statistic/fee",
		method:"get",
		params
	})
}

//运营统计-维修申报
export function getRepair(params){
	return fetch({
		url:"/customer/v1/mgt/statistic/repair",
		method:"get",
		params
	})
}

//运营统计-投诉建议
export function getComplaint(params){
	return fetch({
		url:"/customer/v1/mgt/statistic/complaint",
		method:"get",
		params
	})
}

//运营统计-缴费失败人员
export function getFaileduser(params){
	return fetch({
		url:"/trace/v1/mgt/statistic/fee/faileduser",
		method:"get",
		params
	})
}

//运营统计-访客邀请
export function getVisitor(params){
	return fetch({
		url:"/accessctrl/v1/mgt/statistics/visitor",
		method:"get",
		params
	})
}